package com.zllkj.mm.util;

import android.widget.ImageView;

import androidx.databinding.BindingAdapter;

import com.bumptech.glide.Glide;
import com.zllkj.mm.R;
import com.zllkj.mm.common.ClientConfig;

public class MMDataBindingUtil {



    @BindingAdapter({"loadImage"})
    public static void loadImage(ImageView imageView , String url){
        Glide.with(imageView.getContext()).load(ClientConfig.IMG_URL + url)
                .error(R.mipmap.default_error).into(imageView);
    }
}
